<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the object's default compression quality</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="gmagick.separateimagechannel.html">« Gmagick::separateimagechannel</a></li>
      <li style="float: right;"><a href="gmagick.setfilename.html">Gmagick::setfilename »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.gmagick.html">Gmagick</a></li>
    <li>Sets the object's default compression quality</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="gmagick.setcompressionquality" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Gmagick::setCompressionQuality</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Gmagick::setCompressionQuality</span> &mdash; <span class="dc-title">Sets the object&#039;s default compression quality</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gmagick.setcompressionquality-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>Gmagick::setCompressionQuality</strong></span>(<span class="methodparam">
    <span class="type">int</span> <code class="parameter">$quality</code>
    <span class="initializer"> = 75</span>
   </span>): <span class="type"><a href="class.gmagick.html" class="type Gmagick">Gmagick</a></span></div>

  <p class="para rdfs-comment">
   Sets the object&#039;s default compression quality.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gmagick.setcompressionquality-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">quality</code></dt>

     <dd>

      <p class="para">
      </p>
     </dd>

    
   </dl>

  </p>
 </div>



 <div class="refsect1 returnvalues" id="refsect1-gmagick.setcompressionquality-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The <span class="classname"><a href="class.gmagick.html" class="classname">Gmagick</a></span> object.
  </p>
 </div>

 <div class="refsect1 errors" id="refsect1-gmagick.setcompressionquality-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   错误时抛出
<span class="classname"><strong class="classname">GmagickException</strong></span>。
  </p>
 </div>






 <div class="refsect1 examples" id="refsect1-gmagick.setcompressionquality-examples">
  <h3 class="title">范例</h3>
  <p class="para">
    <div class="example" id="example-2723">
      <p><strong>示例 #1  <span class="function"><strong>Gmagick::setCompressionQuality()</strong></span></strong></p>
      <div class="example-contents">
      <div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$gm&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">Gmagick</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$gm</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #DD0000">"magick:rose"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$gm</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setCompressionQuality</span><span style="color: #007700">(</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
      </div>

    </div>
  </p>
 </div>


</div></div></div></body></html>